import React, { Component } from "react";
import { connect } from "react-redux";
import { increment } from "../../store/action/count";

class ReduxSaga extends Component {
  render() {
    return (
      <div>
        <h3>redux-saga使用</h3>
        <h2>count:{this.props.count}</h2>
        <button onClick={this.props.increment}>+</button>
      </div>
    );
  }
}
export default connect(({ count }) => ({ count }), { increment })(ReduxSaga);
